/*
** my_strcat.c for my_strcat in /home/labonn_c//Documents/piscine/Jour_O7
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Tue Oct 11 09:08:11 2011 christophe labonnemartinez
** Last update Wed Oct 12 10:48:48 2011 christophe labonnemartinez
*/

char	*my_strncat(char *dest, char *src, int nb)
{
  char	s[1000];
  int	i;
  int	j;

  i = 0;
  j = 0;
  while (dest[i] != '\0')
    {
      s[i] = dest[i];
      i = i + 1;
    }
  j = i + 1;
  while (src[j] != '\0'&& j <= nb)
    {
      s[j] = src[j];
      j = j + 1;
    }
  s[j + 1] = '\0';
  return (dest);
}
